// Header: 
// File Name: timer1 
// Author: pu
// Date: 2022/11/06
#include <REGX52.H>
#include <TIMER.H>
void main()
{
	Timer0_init();
	while(1)
	{
		
	}
}

void Timer0_Routine() interrupt 1
{
	static unsigned int Timer_Count;
	TL0 = 0X18;
	TH0 = 0XFC;
	Timer_Count++;
	if (Timer_Count >= 1000)
	{
		Timer_Count = 0;
		P2_0 = ~ P2_0;
	}
}